package com.applet;

import java.applet.Applet;
import java.awt.Graphics;
/**
 * 
* @ClassName: CheckerApplet  
* @Description: 获得applet参数  
* @author ZhengZengLiang  
* @date 2017年7月26日  
*
 */
public class CheckerApplet extends Applet{
	/**  
	* @Fields field:field:{todo}(用一句话描述这个变量表示什么)  
	*/
	private static final long serialVersionUID = -3574696396012154077L;
	int squareSize = 50;// 初始化默认大小
	   /*public void init () {
		   String squareSizeParam = getParameter ("squareSize");
		   parseSquareSize (squareSizeParam);
		   String colorParam = getParameter ("color");
		   Color fg = parseColor (colorParam);
		   setBackground (Color.black);
		   setForeground (fg);
	   }*/
	   @SuppressWarnings("unused")
	private void parseSquareSize (String param) {
		   if (param == null) return;
		   try {
		      squareSize = Integer.parseInt (param);
		   }
		   catch (Exception e) {
		     // 保留默认值
		   }
	   }
	 /*  private Color parseColor (String param) {}*/
	   public void paint (Graphics g) {}

}
